<?php

namespace App\Http\Controllers;

use App\Http\Model\Hint;
use App\Http\Model\OutJson;
use App\Http\Services\MonitoringLinkServices;
use Illuminate\Http\Request;

/**
 * 监测链接
 *
 * Created on 2021/11/2 17:09
 * @Author <yuxiang.zhu@asiainnovations.net>
 */
class MonitoringLinkController extends BaseController
{
    /**
     * @var MonitoringLinkServices
     */
    private $service;

    /**
     * 构造函数
     */
    public function __construct()
    {
        $this->service = new MonitoringLinkServices();
    }

    /**
     * 记录来源于华为的日志
     *
     * Created at 2021/11/2 17:17
     * @Author <yuxiang.zhu@asiainnovations.net>
     * @param Request $request
     */
    public function huawei(Request $request)
    {
        $this->service->huawei($request->all());
        OutJson::outJsonResult(Hint::SUCCESS);
    }
}